package com.haipumi.biz.impl;


import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.haipumi.biz.TaskReply;
import com.haipumi.redis.RedisUtil;

@Service("taskReply")
public class TaskReplyImpl implements TaskReply{

	private RedisUtil redis;
	
	@Resource(name = "redisUtil")
	public void setRedis(RedisUtil redis) {
		this.redis = redis;
	}

	@Override
	public Integer updateSupportNum(String rid, String uid) {
		return redis.updateSupportNum(rid, uid);
	}

	@Override
	public String getSupportNum(String rid ){
		return redis.getSupportNum(rid);
	}
}
